package com.sname.car.jms;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Component;

import javax.jms.Destination;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author songx
 * @date 2018/9/25 11:47
 */
@Component
public class SmsProcessor {
    @Autowired
    private JmsMessagingTemplate jmsMessagingTemplate;

    public void sendSmsToQuery (Destination destination,String message){
        jmsMessagingTemplate.convertAndSend(destination,message);
    }

    public void doSendSmsMessage(String text){
        JSONObject jsonObject = JSON.parseObject(text);

    }
}
